<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <%- include bootstrap %>
</head>

<body>
    <%- include("header",{title:"login"}) %>
    <div class="cl center-block">
        <div class="col-sm-6 col-xs-6 col-sm-offset-3 col-xs-offset-3" style="margin-top: 50px;">
            <form class="form-horizontal" method="POST" action="/users/login">
                <div class="form-group" style="margin-top: 50px;">
                    <label for="username_input_id" class="col-sm-5 control-label">用户名：</label>
                    <div class="col-sm-7">
                        <input value='<%- username %>' type="text" class="form-control" id="username_input_id" name="username"
                            placeholder="用户名">
                    </div>
                </div>
                <div class="form-group" style="margin-top: 30px;">
                    <label for="pwd_input_id" class="col-sm-5 control-label">密码：</label>
                    <div class="col-sm-7">
                        <input type="password" class="form-control" id="pwd_input_id" name="password" placeholder="密码">
                    </div>
                    <span style="color:red;font-size: 12px;padding-left: 15px;" class="col-sm-offset-5 col-xs-offset-5 usertel_err">
                        <%- msg %></span>
                </div>
                <div class="form-group" style="margin-top: 50px;">
                    <div class="col-sm-offset-4 col-sm-8">
                        <button type="submit" class="btn btn-primary col-sm-offset-1">登录</button>
                        <button type="button" onclick="location.href='/register'" class="btn btn-success col-sm-offset-1">注册</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <%- include("footer") %>
</body>

</html>